<app-content-header
  [action]="!(getIsShowAction() | async) ? null : action"
  [isCapsule]="(
    (pageService.isStoreLocked$ | async) ||
    !(pageService.isStoreNeedAudit$ | async)
    ) ? false : true"
  (actionClick)="submit()"
  >
  <ng-template #action>
    <i nz-icon type="rocket"></i> {{'BTN.SUBMIT' | i18n}}
  </ng-template>
</app-content-header>

<nz-spin *ngIf="loading"></nz-spin>

<ng-container *ngIf="store && !loading">
  <app-store-detail-com
    [data]="store"
    [token]="token"
    [isEditable]="pageService.isStoreLocked ? false : true"
    (downloadEvent)="download()"
    (freezeEvent)="freeze()"
    (unfreezeEvent)="unfreeze()"
    (saveEvent)="save()"
    (cancelEvent)="cancel($event)"
    (changeOpenEvent)="changeOpen()"
  ></app-store-detail-com>
</ng-container>
